import request from '@/utils/request'
//数据获取
export function getList(data) {
  return request({
    url: '/admin/storage/list',
    method: 'get',
    params: data
  })
}
//编辑
export function redact(data){
    return request({
        url:'/admin/storage/update',
        method:'post',
        data
    })
}
//添加
export function add(data){
    return request({
        url:'/admin/role/create',
        method:'post',
        data
    })
}
//删除
export function del(data){
    return request({
        url:'/admin/storage/delete',
        method:'post',
        data
    })
}
//搜索
export function search(data,da){
    return request({
        url:'/admin/storage/list',
        method:'get',
        params:data,da
    })
}